package com.ruoyi.expert.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 职业表 cs_occupation
 *
 * @author wyp
 */
public class Occupation {
    /** 职业ID */
    private Integer nid;
    /** 专家ID */
    private Integer jid;
    /** 职业资格证书 */
    private String n_certificate;
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    /** 取得时间 */
    private Date n_acquire_date;
    /** 职业证书编号 */
    private String n_code;
    /** 职业颁发机构 */
    private String n_institution;
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    /** 有效期 */
    private Date n_expiration_date;

    public Occupation(Integer nid, Integer jid, String n_certificate, Date n_acquire_date, String n_code, String n_institution, Date n_expiration_date) {
        this.nid = nid;
        this.jid = jid;
        this.n_certificate = n_certificate;
        this.n_acquire_date = n_acquire_date;
        this.n_code = n_code;
        this.n_institution = n_institution;
        this.n_expiration_date = n_expiration_date;
    }
    public Occupation(){

    }

    public Integer getNid() {
        return nid;
    }

    public void setNid(Integer nid) {
        this.nid = nid;
    }

    public Integer getJid() {
        return jid;
    }

    public void setJid(Integer jid) {
        this.jid = jid;
    }

    public String getN_certificate() {
        return n_certificate;
    }

    public void setN_certificate(String n_certificate) {
        this.n_certificate = n_certificate;
    }

    public Date getN_acquire_date() {
        return n_acquire_date;
    }

    public void setN_acquire_date(Date n_acquire_date) {
        this.n_acquire_date = n_acquire_date;
    }

    public String getN_code() {
        return n_code;
    }

    public void setN_code(String n_code) {
        this.n_code = n_code;
    }

    public String getN_institution() {
        return n_institution;
    }

    public void setN_institution(String n_institution) {
        this.n_institution = n_institution;
    }

    public Date getN_expiration_date() {
        return n_expiration_date;
    }

    public void setN_expiration_date(Date n_expiration_date) {
        this.n_expiration_date = n_expiration_date;
    }

    @Override
    public String toString() {
        return "Occupation{" +
                "nid=" + nid +
                ", jid=" + jid +
                ", n_certificate='" + n_certificate + '\'' +
                ", n_acquire_date=" + n_acquire_date +
                ", n_code='" + n_code + '\'' +
                ", n_institution='" + n_institution + '\'' +
                ", n_expiration_date=" + n_expiration_date +
                '}';
    }
}
